Skip to main content

Get-IMPersonAccess

SYNOPSIS​

Lists which users have access to people

SYNTAX​

Get-IMPersonAccess [[-Session] <ImmichSession>] [[-Direction] <String>] [[-PersonId] <String>]
[[-Role] <String>] [[-SharedById] <String>] [[-SharedWithId] <String>] [-ProgressAction <ActionPreference>]
[<CommonParameters>]

DESCRIPTION​

Returns the sharing relationships for people. Each entry describes a person, the user that shared it, the user it was shared with, and the access role that was granted. All filters are optional and are combined.

EXAMPLES​

EXAMPLE 1​

Get-IMPersonAccess

Returns all people access relationships visible to the current user.

EXAMPLE 2​

Get-IMPersonAccess -Direction shared-by -Role admin

Returns the admin grants the current user has given to other users.

PARAMETERS​

-Session​

Optionally define an Immich session object to use. This is useful when you are connected to more than one Immich instance.

Type: ImmichSession
Parameter Sets: (All)
Aliases:

Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Direction​

Limit the results to people shared by the current user (shared-by) or shared with the current user (shared-with).

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-PersonId​

Limit the results to the specified person ID.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Role​

Limit the results to the specified access role (read, write or admin).

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-SharedById​

Limit the results to access granted by the specified user ID.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 5
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-SharedWithId​

Limit the results to access granted to the specified user ID.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 6
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ProgressAction​

{{ Fill ProgressAction Description }}

Type: ActionPreference
Parameter Sets: (All)
Aliases: proga

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters​

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS​

OUTPUTS​

NOTES​

EDIT THIS DOC​

This page was auto-generated from PowerShell comment-based help. To edit this page, update the corresponding command help in the module source repository.